//
//  songDetails.h
//  cwRadio
//
//  Created by Niels Buekers on 12/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cwRadioAppDelegate.h"


@interface songDetails : NSObject {
	NSString *title;
	NSString *artist;
	NSString *album;
	UIImage *cover;
	NSString *coverUrl;
	NSString * url;
	NSString * stream;
	NSInteger  _id;
	NSInteger duration; 

	genres genre;
	
}
@property(nonatomic,retain)	NSString *title;
@property(nonatomic,retain) NSString *artist;
@property(nonatomic,retain) NSString *album;
@property(nonatomic,retain) UIImage *cover;
@property(nonatomic,assign) genres genre;
@property(nonatomic,retain) NSString *coverUrl;

@property(nonatomic,retain)	NSString *url;
@property(nonatomic,retain) NSString *stream;

//getters for coping when only the tail of the playlist is replaced
-(genres) getGenre;
-(NSInteger) getDuration;
-(NSInteger) getId;
-(NSString*) getArtist;
-(NSString*) getUrl;
-(NSString*) getStream;
-(NSString*) getTitle;
-(NSString*) getAlbum;
-(NSString*) getCoverUrl;
-(UIImage*) getCover;

//when copying to this class, a problem with occurs with memory that is removed afterwards, one solution is to copy everything in the class seperatly
-(void) setPointerType:(NSString*)a stream:(NSString*)st url:(NSString*)u album:(NSString*)al coverUrl:(NSString*)c title:(NSString*)t;

//the initialiser, loading the cover happens within the function itself
-(songDetails*) initWithArtist:(NSString*)at title:(NSString*)t album:(NSString*)al coverUrl:(NSString*)cu genre:(genres)g url:(NSString*)ur stream:(NSString*)stre _id:(NSInteger)i duration:(NSInteger)du;
@end
